package com.cipe.cmrs.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 * @author Incepio
 * 
 */
@Entity
@Table(name = "imp")
@SuppressWarnings("serial")
public class Imp extends BaseAuditEntity {

    @Transient
    String prc;
    @Transient
    String message;

    /**
     * Attribute impaction.
     */
    private String impaction;

    /**
     * Attribute impduedate.
     */
    @Temporal(TemporalType.TIMESTAMP)
    private Date impduedate;

    /**
     * Attribute impperformed.
     */
    @Temporal(TemporalType.TIMESTAMP)
    private Date impperformed;

    /**
     * Attribute impreceived.
     */
    @Temporal(TemporalType.TIMESTAMP)
    private Date impreceived;

    /**
     * Attribute impclosedtofile.
     */
    @Temporal(TemporalType.TIMESTAMP)
    private Date impclosedtofile;

    /**
     * Attribute projectreports
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "projectreportsid")
    private Projectreport projectreport;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "auditsid")
    private Audits audits;

    public String getPrc() {
        return prc;
    }

    public void setPrc(String prc) {
        this.prc = prc;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getImpaction() {
        return impaction;
    }

    public void setImpaction(String impaction) {
        this.impaction = impaction;
    }

    public Date getImpduedate() {
        return impduedate;
    }

    public void setImpduedate(Date impduedate) {
        this.impduedate = impduedate;
    }

    public Date getImpperformed() {
        return impperformed;
    }

    public void setImpperformed(Date impperformed) {
        this.impperformed = impperformed;
    }

    public Date getImpreceived() {
        return impreceived;
    }

    public void setImpreceived(Date impreceived) {
        this.impreceived = impreceived;
    }

    public Date getImpclosedtofile() {
        return impclosedtofile;
    }

    public void setImpclosedtofile(Date impclosedtofile) {
        this.impclosedtofile = impclosedtofile;
    }

    public Projectreport getProjectreport() {
        return projectreport;
    }

    public void setProjectreport(Projectreport projectreport) {
        this.projectreport = projectreport;
    }

    public Audits getAudits() {
        return audits;
    }

    public void setAudits(Audits audits) {
        this.audits = audits;
    }

}